package van.planifolia.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/15 18:27
 */
@Component
// 这个注解的作用就是用来关联SpringBoot核心配置文件的信息的，当然也可以指定前缀
@ConfigurationProperties(prefix = "czy.api.message")
@Data
public class CzyConfig {
    private String url;
    private String key;
    private String appid;
}
